package com.orchid.community.models.mapper;

import com.orchid.community.models.DTO.UserParamRequestDTO;
import com.orchid.community.models.DTO.UserRequestDTO;
import com.orchid.community.models.entity.SysUsers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AccountMapper {
    List<UserParamRequestDTO> getAccountList();

    String getUserByUsername(@Param("username") String username);

    int addAccount(SysUsers sysUsers);

    SysUsers getSysUserById(SysUsers sysUsers);

    int editAccount(SysUsers sysUsersInfo);
}
